using UnityEngine;
using System.Collections;
using UnityEditor;

[CustomEditor(typeof(C2DAnimatedSprite))]
public class C2DAnimatedSpriteEditor : Editor 
{
	public override void OnInspectorGUI()
	{	
		C2DSprite sprite = (C2DSprite)(target);
		
		if( !sprite.IsInitialized() )
			sprite.InitSprite();
		
		DrawDefaultInspector();
			
		C2DSpriteEditor.DrawSpriteInspector( sprite );
	}
}
